<extend name="Public/base"/>
<block name="sidebar">
    <include file="sidemenu"/>
</block>
<block name="body">
    <div class="main-title">
        <h2>优质物流,合作伙伴,相关领域修改</h2>
    </div>
    <form action="{:U('partner_update')}" method="post" class="form-horizontal" enctype="multipart/form-data">
        <input type="text" class="hidden" name="id" value="{$data['id']}">
        <div class="form-item">
            <label class="item-label">名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$data['title']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">类型</label>
            <div class="controls">
                <select name="type">
                    <option value="1" <eq name="data['type']" value="1">selected="selected"</eq>>优质吊装物流供应商</option>
                    <option value="2" <eq name="data['type']" value="2">selected="selected"</eq>>诚信合作客户</option>
                    <option value="3" <eq name="data['type']" value="3">selected="selected"</eq>>行业相关领域</option>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">链接</label>
            <div class="controls">
                <input type="text" class="text input-large" name="addurl" value="{$data['addurl']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">上传图片文件</label>
            <div class="controls">
                <input type="file" class="text input-large" name="image" value="">
                <input type="text" class="hidden" name="url" value="{$data['url']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">浏览</label>
            <div  class="controls">
                <img src="__ROOT__/Uploads{$data['url']}">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>
